﻿namespace ACCOUNTING
{
    using ACCOUNTING.LVY.Business;
    using ACCOUNTING.My;
    using ACCOUNTING.My.Resources;
    using C1.Win.C1FlexGrid;
    using C1.Win.C1FlexGrid.Util.BaseControls;
    using Microsoft.VisualBasic;
    using Microsoft.VisualBasic.CompilerServices;
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Diagnostics;
    using System.Drawing;
    using System.Runtime.CompilerServices;
    using System.Windows.Forms;

    [DesignerGenerated]
    public class Frm_CongNoPhaiThu : Form
    {
        private static List<WeakReference> __ENCList = new List<WeakReference>();
        [AccessedThroughProperty("AdvTaiKhoan")]
        private ADVAccount _AdvTaiKhoan;
        [AccessedThroughProperty("CboDonVi")]
        private ComboBox _CboDonVi;
        [AccessedThroughProperty("CboMauBaoCao")]
        private ComboBox _CboMauBaoCao;
        [AccessedThroughProperty("CmdCancel")]
        private Button _CmdCancel;
        [AccessedThroughProperty("CmdOK")]
        private Button _CmdOK;
        [AccessedThroughProperty("GroupBox1")]
        private GroupBox _GroupBox1;
        [AccessedThroughProperty("Label1")]
        private Label _Label1;
        [AccessedThroughProperty("Label13")]
        private Label _Label13;
        [AccessedThroughProperty("Label2")]
        private Label _Label2;
        [AccessedThroughProperty("Label3")]
        private Label _Label3;
        [AccessedThroughProperty("Label4")]
        private Label _Label4;
        [AccessedThroughProperty("Label5")]
        private Label _Label5;
        [AccessedThroughProperty("TxtDenNgay")]
        private DateTimePicker _TxtDenNgay;
        [AccessedThroughProperty("TxtSearchCode")]
        private TextBox _TxtSearchCode;
        [AccessedThroughProperty("TxtSearchName")]
        private TextBox _TxtSearchName;
        [AccessedThroughProperty("TxtTuNgay")]
        private DateTimePicker _TxtTuNgay;
        [AccessedThroughProperty("VSList")]
        private C1.Win.C1FlexGrid.C1FlexGrid _VSList;
        public bool bLoaded;
        private object cFrmCall;
        private DataView cFrmData;
        private string cFrmKhoa;
        private string cFrmKhoaOld;
        private string cFrmTask;
        private IContainer components;
        private bool mAllowAdd;
        private bool mAllowDel;
        private bool mAllowEdit;
        private bool mAllowView;
        private bool mEnableControl;
        private clsDMDoiTuong objDMKH;
        private clsDMTaiKhoan objTK;
        private string pKhoaDoiTuong;

        public Frm_CongNoPhaiThu()
        {
            base.Load += new EventHandler(this.Frm_CongNoPhaiThu_Load);
            List<WeakReference> list = __ENCList;
            lock (list)
            {
                __ENCList.Add(new WeakReference(this));
            }
            this.bLoaded = false;
            this.cFrmKhoaOld = "";
            this.cFrmKhoa = "";
            this.pKhoaDoiTuong = "";
            this.cFrmTask = "";
            this.mAllowEdit = true;
            this.mAllowDel = false;
            this.objDMKH = new clsDMDoiTuong();
            this.objTK = new clsDMTaiKhoan();
            this.InitializeComponent();
        }

        private void AdvTaiKhoan_ValueChanged(object sender, EventArgs e)
        {
            this.LoadData();
        }

        public bool checkIvalid()
        {
            if (LVYModule.ReturnIfNull(this.AdvTaiKhoan.Value, "", modGeneral.TypeOfValue.Nothing).ToString().Trim() == "")
            {
                bool flag=false;
                LVYModule.ShowWarning(modGeneral.Tranlated("Bạn phải nh\x00e2̣p số t\x00e0i khoản trước!", ""));
                this.AdvTaiKhoan.Focus();
                return flag;
            }
            return true;
        }

        private void CmdCancel_Click(object sender, EventArgs e)
        {
            this.Dispose();
        }

        private void CmdOK_Click(object sender, EventArgs e)
        {
            if (this.checkIvalid())
            {
                if (this.CboMauBaoCao.SelectedIndex == 0)
                {
                    this.PrintReportMau1();
                }
                if (this.CboMauBaoCao.SelectedIndex == 1)
                {
                    this.PrintReportTongHop();
                }
                if (this.CboMauBaoCao.SelectedIndex == 2)
                {
                    this.PrintReportSoDuCuoiKy();
                }
                if (this.CboMauBaoCao.SelectedIndex == 3)
                {
                    this.PrintReportTheoHanThanhToan();
                }
            }
        }

        [DebuggerNonUserCode]
        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void Frm_CongNoPhaiThu_Load(object sender, EventArgs e)
        {
            LVYModule.GetUserRight(ref this.mAllowView, ref this.mAllowDel, ref this.mAllowEdit, ref this.mAllowAdd, Conversions.ToString(this.Tag), modGeneral.H_USERNAME);
            if (!this.mAllowView)
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Bạn kh\x00f4ng c\x00f3 quyền xem, li\x00ean hệ với người quản trị để biết th\x00eam chi tiết.", ""));
                this.Dispose();
            }
            else
            {
                this.TxtTuNgay.Text = "01/" + LVYModule.sRight("00" + Conversions.ToString(DateAndTime.Month(DateAndTime.Today)), 2) + "/" + Conversions.ToString(DateAndTime.Year(DateAndTime.Today));
                BuildComboModule.BuildCombo(this.CboDonVi, modGeneral.ListDanhMuc.DonVi, true, "", "");
                this.CboDonVi.SelectedValue = modGeneral.H_CLIENT;
                this.CboMauBaoCao.Items.Clear();
                this.CboMauBaoCao.Items.Add(modGeneral.Tranlated("In chi tiết chứng từ ph\x00e1t sinh", ""));
                this.CboMauBaoCao.Items.Add(modGeneral.Tranlated("In tổng hợp theo đối tượng", ""));
                this.CboMauBaoCao.Items.Add(modGeneral.Tranlated("In số dư cuối kỳ theo đối tượng", ""));
                this.CboMauBaoCao.Items.Add(modGeneral.Tranlated("In chi tiết chứng từ ph\x00e1t sinh, ng\x00e0y thanh to\x00e1n", ""));
                this.CboMauBaoCao.SelectedIndex = 0;
                this.AdvTaiKhoan.SetDefault();
                this.LoadData();
            }
        }

        [DebuggerStepThrough]
        private void InitializeComponent()
        {
            ComponentResourceManager manager = new ComponentResourceManager(typeof(Frm_CongNoPhaiThu));
            this.Label3 = new Label();
            this.TxtDenNgay = new DateTimePicker();
            this.Label13 = new Label();
            this.TxtTuNgay = new DateTimePicker();
            this.Label2 = new Label();
            this.VSList = new C1.Win.C1FlexGrid.C1FlexGrid();
            this.GroupBox1 = new GroupBox();
            this.CboMauBaoCao = new ComboBox();
            this.Label5 = new Label();
            this.Label4 = new Label();
            this.CboDonVi = new ComboBox();
            this.Label1 = new Label();
            this.TxtSearchName = new TextBox();
            this.TxtSearchCode = new TextBox();
            this.AdvTaiKhoan = new ADVAccount();
            this.CmdCancel = new Button();
            this.CmdOK = new Button();
            this.VSList.BeginInit();
            this.GroupBox1.SuspendLayout();
            this.SuspendLayout();
            this.Label3.AutoSize = true;
            Point point = new Point(0x106, 0x41);
            this.Label3.Location = point;
            this.Label3.Name = "Label3";
            Size size = new Size(0x35, 13);
            this.Label3.Size = size;
            this.Label3.TabIndex = 0x2f;
            this.Label3.Text = "Đến ng\x00e0y";
            this.TxtDenNgay.Format = DateTimePickerFormat.Short;
            point = new Point(330, 0x3e);
            this.TxtDenNgay.Location = point;
            this.TxtDenNgay.Name = "TxtDenNgay";
            size = new Size(0x57, 20);
            this.TxtDenNgay.Size = size;
            this.TxtDenNgay.TabIndex = 0x2d;
            this.Label13.AutoSize = true;
            point = new Point(0x24, 0x41);
            this.Label13.Location = point;
            this.Label13.Name = "Label13";
            size = new Size(0x2e, 13);
            this.Label13.Size = size;
            this.Label13.TabIndex = 0x2e;
            this.Label13.Text = "Từ ng\x00e0y";
            this.TxtTuNgay.Format = DateTimePickerFormat.Short;
            point = new Point(0x70, 0x3e);
            this.TxtTuNgay.Location = point;
            this.TxtTuNgay.Name = "TxtTuNgay";
            size = new Size(90, 20);
            this.TxtTuNgay.Size = size;
            this.TxtTuNgay.TabIndex = 0x2c;
            DateTime time = new DateTime(0x7d7, 7, 1, 0, 0, 0, 0);
            this.TxtTuNgay.Value = time;
            this.Label2.AutoSize = true;
            point = new Point(0x24, 0x2a);
            this.Label2.Location = point;
            this.Label2.Name = "Label2";
            size = new Size(0x43, 13);
            this.Label2.Size = size;
            this.Label2.TabIndex = 0x31;
            this.Label2.Text = "Số t\x00e0i khoản";
            this.VSList.AutoResize = false;
            this.VSList.BackColor = Color.WhiteSmoke;
            this.VSList.BorderStyle = C1.Win.C1FlexGrid.Util.BaseControls.BorderStyleEnum.Light3D;
            this.VSList.ColumnInfo = manager.GetString("VSList.ColumnInfo");
            this.VSList.ExtendLastCol = true;
            this.VSList.FocusRect = FocusRectEnum.None;
            point = new Point(4, 110);
            this.VSList.Location = point;
            this.VSList.Name = "VSList";
            this.VSList.Rows.Count = 1;
            this.VSList.Rows.DefaultSize = 0x11;
            this.VSList.SelectionMode = SelectionModeEnum.Row;
            size = new Size(0x1b7, 0x134);
            this.VSList.Size = size;
            this.VSList.StyleInfo = manager.GetString("VSList.StyleInfo");
            this.VSList.TabIndex = 50;
            this.VSList.VisualStyle = VisualStyle.Office2007Blue;
            this.GroupBox1.BackColor = Color.Transparent;
            this.GroupBox1.Controls.Add(this.CboMauBaoCao);
            this.GroupBox1.Controls.Add(this.Label5);
            this.GroupBox1.Controls.Add(this.Label4);
            this.GroupBox1.Controls.Add(this.CboDonVi);
            this.GroupBox1.Controls.Add(this.Label1);
            this.GroupBox1.Controls.Add(this.TxtSearchName);
            this.GroupBox1.Controls.Add(this.TxtSearchCode);
            this.GroupBox1.Controls.Add(this.TxtDenNgay);
            this.GroupBox1.Controls.Add(this.TxtTuNgay);
            this.GroupBox1.Controls.Add(this.VSList);
            this.GroupBox1.Controls.Add(this.Label13);
            this.GroupBox1.Controls.Add(this.Label2);
            this.GroupBox1.Controls.Add(this.Label3);
            this.GroupBox1.Controls.Add(this.AdvTaiKhoan);
            point = new Point(4, 3);
            this.GroupBox1.Location = point;
            this.GroupBox1.Name = "GroupBox1";
            size = new Size(0x1be, 0x1be);
            this.GroupBox1.Size = size;
            this.GroupBox1.TabIndex = 0x34;
            this.GroupBox1.TabStop = false;
            this.GroupBox1.Text = "Tuỳ chọn";
            this.CboMauBaoCao.FormattingEnabled = true;
            point = new Point(0x70, 0x56);
            this.CboMauBaoCao.Location = point;
            this.CboMauBaoCao.Name = "CboMauBaoCao";
            size = new Size(0x131, 0x15);
            this.CboMauBaoCao.Size = size;
            this.CboMauBaoCao.TabIndex = 0x41;
            this.Label5.AutoSize = true;
            point = new Point(0x24, 0x59);
            this.Label5.Location = point;
            this.Label5.Name = "Label5";
            size = new Size(70, 13);
            this.Label5.Size = size;
            this.Label5.TabIndex = 0x40;
            this.Label5.Text = "Mẫu b\x00e1o c\x00e1o";
            this.Label4.AutoSize = true;
            point = new Point(9, 0x1a9);
            this.Label4.Location = point;
            this.Label4.Name = "Label4";
            size = new Size(0x18, 13);
            this.Label4.Size = size;
            this.Label4.TabIndex = 0x3f;
            this.Label4.Text = "T\x00ecm";
            this.CboDonVi.FormattingEnabled = true;
            point = new Point(0x70, 15);
            this.CboDonVi.Location = point;
            this.CboDonVi.Name = "CboDonVi";
            size = new Size(0x131, 0x15);
            this.CboDonVi.Size = size;
            this.CboDonVi.TabIndex = 0x3e;
            this.Label1.AutoSize = true;
            point = new Point(0x24, 0x12);
            this.Label1.Location = point;
            this.Label1.Name = "Label1";
            size = new Size(0x26, 13);
            this.Label1.Size = size;
            this.Label1.TabIndex = 0x3d;
            this.Label1.Text = "Đơn vị";
            point = new Point(0x98, 0x1a6);
            this.TxtSearchName.Location = point;
            this.TxtSearchName.Name = "TxtSearchName";
            size = new Size(0x11d, 20);
            this.TxtSearchName.Size = size;
            this.TxtSearchName.TabIndex = 0x34;
            point = new Point(0x23, 0x1a6);
            this.TxtSearchCode.Location = point;
            this.TxtSearchCode.Name = "TxtSearchCode";
            size = new Size(0x6f, 20);
            this.TxtSearchCode.Size = size;
            this.TxtSearchCode.TabIndex = 0x33;
            this.AdvTaiKhoan.Conditions = "";
            this.AdvTaiKhoan.DefaultValue = "131";
            this.AdvTaiKhoan.FieldNameFilter = "Left(SoTaiKhoan,3)";
            this.AdvTaiKhoan.KeyFilter = "131|141|338";
            point = new Point(0x70, 0x27);
            this.AdvTaiKhoan.Location = point;
            Padding padding = new Padding(0);
            this.AdvTaiKhoan.Margin = padding;
            this.AdvTaiKhoan.Name = "AdvTaiKhoan";
            this.AdvTaiKhoan.OnlyDigit = false;
            this.AdvTaiKhoan.ReadOnly = false;
            size = new Size(0x131, 20);
            this.AdvTaiKhoan.Size = size;
            this.AdvTaiKhoan.TabIndex = 0x30;
            this.AdvTaiKhoan.UpperText = true;
            this.AdvTaiKhoan.Value = "";
            this.AdvTaiKhoan.WithCode = 80;
            this.CmdCancel.DialogResult = DialogResult.Cancel;
            this.CmdCancel.Image = (Image) manager.GetObject("CmdCancel.Image");
            this.CmdCancel.ImageAlign = ContentAlignment.MiddleLeft;
            point = new Point(0x174, 0x1c4);
            this.CmdCancel.Location = point;
            this.CmdCancel.Name = "CmdCancel";
            size = new Size(0x4f, 0x18);
            this.CmdCancel.Size = size;
            this.CmdCancel.TabIndex = 0x38;
            this.CmdCancel.Text = "&Tho\x00e1t";
            this.CmdCancel.UseVisualStyleBackColor = true;
            this.CmdOK.Image = (Image) manager.GetObject("CmdOK.Image");
            this.CmdOK.ImageAlign = ContentAlignment.MiddleLeft;
            point = new Point(0x121, 0x1c4);
            this.CmdOK.Location = point;
            this.CmdOK.Name = "CmdOK";
            size = new Size(0x4e, 0x18);
            this.CmdOK.Size = size;
            this.CmdOK.TabIndex = 0x37;
            this.CmdOK.Text = "&Chọn";
            this.CmdOK.UseVisualStyleBackColor = true;
            SizeF ef = new SizeF(6f, 13f);
            this.AutoScaleDimensions = ef;
            this.AutoScaleMode = AutoScaleMode.Font;
            this.BackgroundImage = ACCOUNTING.My.Resources.Resources.background;
            size = new Size(0x1c5, 0x1de);
            this.ClientSize = size;
            this.ControlBox = false;
            this.Controls.Add(this.CmdCancel);
            this.Controls.Add(this.CmdOK);
            this.Controls.Add(this.GroupBox1);
            this.FormBorderStyle = FormBorderStyle.FixedDialog;
            this.Name = "Frm_CongNoPhaiThu";
            this.StartPosition = FormStartPosition.CenterScreen;
            this.Tag = "BC-0005             ";
            this.Text = "CONG NO PHAI THU";
            this.VSList.EndInit();
            this.GroupBox1.ResumeLayout(false);
            this.GroupBox1.PerformLayout();
            this.ResumeLayout(false);
        }

        public void LoadData()
        {
            this.VSList.Select(0, 0);
            this.VSList.DataSource = null;
            this.VSList.Rows.Count = 1;
            if (this.AdvTaiKhoan.Value.Trim() != "")
            {
                string str=String.Empty;
                this.objTK.Load(this.AdvTaiKhoan.Value);
                if (this.objTK.DoiTuongKhachHang == 1)
                {
                    str = "C";
                }
                if (this.objTK.DoiTuongNhanVien == 1)
                {
                    str = "E";
                }
                this.cFrmData = new DataView(this.objDMKH.ShowListByField("Khoa|0 as Chon|Ma|Ten" + modGeneral.H_LANGUAGE, " CHARINDEX('" + str + "',Loai) <> 0 ", ""));
                if (this.cFrmData != null)
                {
                    this.VSList.DataSource = this.cFrmData;
                    C1.Win.C1FlexGrid.C1FlexGrid vSList = this.VSList;
                    vSList[0, 1] = "";
                    vSList[0, 2] = modGeneral.Tranlated("M\x00e3 kh\x00e1ch h\x00e0ng", "");
                    vSList[0, 3] = modGeneral.Tranlated("T\x00ean kh\x00e1ch h\x00e0ng", "");
                    vSList.Cols[0].Visible = false;
                    vSList.Cols[1].DataType = System.Type.GetType("System.Boolean");
                    vSList.Cols[1].Width = 20;
                    vSList = null;
                }
            }
        }

        public void PrintReportChiTiet()
        {
            this.Cursor = Cursors.WaitCursor;
            object obj2 = modGeneral.CreatKey("BC_DuLieuDanhMuc", 10, "");
            ReportModule.InitDuLieuDanhMuc(Conversions.ToString(obj2), this.VSList, 0, 1, "");
            DataTable dataTable = ReportModule.GetDataCongNo(Conversions.ToString(obj2), LVYModule.Date2Char(this.TxtTuNgay.Text), LVYModule.Date2Char(this.TxtDenNgay.Text), Conversions.ToString(this.CboDonVi.SelectedValue), this.AdvTaiKhoan.Value, "");
            if (dataTable.Rows.Count == 0)
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Kh\x00f4ng c\x00f3 dữ liệu !", ""));
            }
            else if (dataTable != null)
            {
                Rpt_CongNoPhaiThu thu = new Rpt_CongNoPhaiThu();
                try
                {
                    thu.SetDataSource(dataTable);
                    if (modGeneral.H_LANGUAGE == "VIET")
                    {
                        thu.SetParameterValue(0, modGeneral.Tranlated(modGeneral.H_COMPANYNAMEVIET, ""));
                    }
                    else
                    {
                        thu.SetParameterValue(0, modGeneral.Tranlated(modGeneral.H_COMPANYNAMEANH, ""));
                    }
                    thu.SetParameterValue(1, modGeneral.Tranlated("Địa chỉ", "") + ": " + modGeneral.H_ADDRESS);
                    thu.SetParameterValue(2, modGeneral.Tranlated("T\x00e0i khoản", "") + ": " + modGeneral.H_ACCOUNTNAME + " " + modGeneral.Tranlated("Tại", "") + ":" + modGeneral.H_BANK);
                    thu.SetParameterValue(3, modGeneral.Tranlated("Điện thoại", "") + ": " + modGeneral.H_TELEPHONE);
                    thu.SetParameterValue(4, modGeneral.Tranlated("Fax", "") + ": " + modGeneral.H_FAX);
                    thu.SetParameterValue(5, modGeneral.Tranlated("SỔ CHI TIẾT C\x00d4NG NỢ PHẢI THU", ""));
                    thu.SetParameterValue(6, modGeneral.Tranlated("Số chứng từ", ""));
                    thu.SetParameterValue(7, modGeneral.Tranlated("Ng\x00e0y", ""));
                    thu.SetParameterValue(8, modGeneral.Tranlated("Diễn giải", ""));
                    thu.SetParameterValue(9, modGeneral.Tranlated("TK đối", ""));
                    thu.SetParameterValue(10, modGeneral.Tranlated("Ph\x00e1t sinh nợ", ""));
                    thu.SetParameterValue(11, modGeneral.Tranlated("Ph\x00e1t sinh c\x00f3", ""));
                    thu.SetParameterValue(12, modGeneral.Tranlated("Số dư đầu kỳ", ""));
                    thu.SetParameterValue(13, modGeneral.Tranlated("Cộng ph\x00e1t sinh", ""));
                    thu.SetParameterValue(14, modGeneral.Tranlated("Số dư cuối kỳ", ""));
                    thu.SetParameterValue(15, modGeneral.Tranlated("Ng\x00e0y ...... th\x00e1ng ...... năm ...............", ""));
                    thu.SetParameterValue(0x10, modGeneral.Tranlated("Gi\x00e1m đốc", ""));
                    thu.SetParameterValue(0x11, modGeneral.Tranlated("Từ ng\x00e0y", "") + " : " + this.TxtTuNgay.Text);
                    thu.SetParameterValue(0x12, modGeneral.Tranlated("Đến ng\x00e0y", "") + " : " + this.TxtDenNgay.Text);
                    thu.SetParameterValue(0x13, modGeneral.Tranlated("Lập biểu", ""));
                    thu.SetParameterValue(20, modGeneral.Tranlated("Kế to\x00e1n trưởng", ""));
                    MyProject.Forms.Frm_ViewReport.ReportViewer.ReportSource = thu;
                    MyProject.Forms.Frm_ViewReport.ReportViewer.DisplayGroupTree = false;
                    this.Cursor = Cursors.Default;
                    MyProject.Forms.Frm_ViewReport.ShowDialog();
                }
                catch (Exception exception1)
                {
                    ProjectData.SetProjectError(exception1);
                    Exception exception = exception1;
                    this.Cursor = Cursors.Default;
                    MessageBox.Show(exception.Message.ToString());
                    ProjectData.ClearProjectError();
                }
            }
        }

        public void PrintReportMau1()
        {
            this.Cursor = Cursors.WaitCursor;
            object obj2 = modGeneral.CreatKey("BC_DuLieuDanhMuc", 10, "");
            ReportModule.InitDuLieuDanhMuc(Conversions.ToString(obj2), this.VSList, 0, 1, "");
            DataTable dataTable = ReportModule.GetDataCongNo(Conversions.ToString(obj2), LVYModule.Date2Char(this.TxtTuNgay.Text), LVYModule.Date2Char(this.TxtDenNgay.Text), Conversions.ToString(this.CboDonVi.SelectedValue), this.AdvTaiKhoan.Value, "");
            if (dataTable.Rows.Count == 0)
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Kh\x00f4ng c\x00f3 dữ liệu !", ""));
            }
            else if (dataTable != null)
            {
                Rpt_CongNoPhaiThuMau1 mau = new Rpt_CongNoPhaiThuMau1();
                try
                {
                    mau.SetDataSource(dataTable);
                    if (modGeneral.H_LANGUAGE == "VIET")
                    {
                        mau.SetParameterValue(0, modGeneral.Tranlated(modGeneral.H_COMPANYNAMEVIET, ""));
                    }
                    else
                    {
                        mau.SetParameterValue(0, modGeneral.Tranlated(modGeneral.H_COMPANYNAMEANH, ""));
                    }
                    mau.SetParameterValue(1, modGeneral.Tranlated("Địa chỉ", "") + ": " + modGeneral.H_ADDRESS);
                    mau.SetParameterValue(2, modGeneral.Tranlated("T\x00e0i khoản", "") + ": " + modGeneral.H_ACCOUNTNAME + " " + modGeneral.Tranlated("Tại", "") + ":" + modGeneral.H_BANK);
                    mau.SetParameterValue(3, modGeneral.Tranlated("Điện thoại", "") + ": " + modGeneral.H_TELEPHONE);
                    mau.SetParameterValue(4, modGeneral.Tranlated("Fax", "") + ": " + modGeneral.H_FAX);
                    mau.SetParameterValue(5, modGeneral.Tranlated("SỔ CHI TIẾT C\x00d4NG NỢ PHẢI THU", ""));
                    mau.SetParameterValue(6, modGeneral.Tranlated("Số chứng từ", ""));
                    mau.SetParameterValue(7, modGeneral.Tranlated("Ng\x00e0y", ""));
                    mau.SetParameterValue(8, modGeneral.Tranlated("Diễn giải", ""));
                    mau.SetParameterValue(9, modGeneral.Tranlated("TK đối", ""));
                    mau.SetParameterValue(10, modGeneral.Tranlated("Ph\x00e1t sinh nợ", ""));
                    mau.SetParameterValue(11, modGeneral.Tranlated("Ph\x00e1t sinh c\x00f3", ""));
                    mau.SetParameterValue(12, modGeneral.Tranlated("Đầu kỳ", ""));
                    mau.SetParameterValue(13, modGeneral.Tranlated("Cộng ph\x00e1t sinh", ""));
                    mau.SetParameterValue(14, modGeneral.Tranlated("Cuối kỳ", ""));
                    mau.SetParameterValue(15, modGeneral.Tranlated("Ng\x00e0y ...... th\x00e1ng ...... năm ...............", ""));
                    mau.SetParameterValue(0x10, modGeneral.Tranlated("Gi\x00e1m đốc", ""));
                    mau.SetParameterValue(0x11, modGeneral.Tranlated("Từ ng\x00e0y", "") + " : " + this.TxtTuNgay.Text);
                    mau.SetParameterValue(0x12, modGeneral.Tranlated("Đến ng\x00e0y", "") + " : " + this.TxtDenNgay.Text);
                    mau.SetParameterValue(0x13, modGeneral.Tranlated("Lập biểu", ""));
                    mau.SetParameterValue(20, modGeneral.Tranlated("Kế to\x00e1n trưởng", ""));
                    mau.SetParameterValue(0x15, modGeneral.Tranlated("Hạn thanh to\x00e1n", ""));
                    mau.SetParameterValue(0x16, modGeneral.Tranlated("Ng\x00e0y thu", ""));
                    mau.SetParameterValue(0x17, modGeneral.Tranlated("Qu\x00e1 hạn", ""));
                    mau.SetParameterValue(0x18, modGeneral.Tranlated("STT", ""));
                    mau.SetParameterValue(0x19, modGeneral.Tranlated("H\x00f3a đơn", ""));
                    MyProject.Forms.Frm_ViewReport.ReportViewer.ReportSource = mau;
                    MyProject.Forms.Frm_ViewReport.ReportViewer.DisplayGroupTree = false;
                    this.Cursor = Cursors.Default;
                    MyProject.Forms.Frm_ViewReport.ShowDialog();
                }
                catch (Exception exception1)
                {
                    ProjectData.SetProjectError(exception1);
                    Exception exception = exception1;
                    this.Cursor = Cursors.Default;
                    MessageBox.Show(exception.Message.ToString());
                    ProjectData.ClearProjectError();
                }
            }
        }

        public void PrintReportSoDuCuoiKy()
        {
            this.Cursor = Cursors.WaitCursor;
            object obj2 = modGeneral.CreatKey("BC_DuLieuDanhMuc", 10, "");
            ReportModule.InitDuLieuDanhMuc(Conversions.ToString(obj2), this.VSList, 0, 1, "");
            DataTable dataTable = ReportModule.GetDataCongNoTongHop(Conversions.ToString(obj2), LVYModule.Date2Char(this.TxtTuNgay.Text), LVYModule.Date2Char(this.TxtDenNgay.Text), Conversions.ToString(this.CboDonVi.SelectedValue), this.AdvTaiKhoan.Value, "");
            if (dataTable.Rows.Count == 0)
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Kh\x00f4ng c\x00f3 dữ liệu !", ""));
            }
            else if (dataTable != null)
            {
                RptCongNoTongHopCuoiKy ky = new RptCongNoTongHopCuoiKy();
                try
                {
                    ky.SetDataSource(dataTable);
                    ky.Subreports[0].SetDataSource(modGeneral.H_DATACOMPANY);
                    if (modGeneral.H_LANGUAGE == "VIET")
                    {
                        ky.SetParameterValue(0, modGeneral.Tranlated(modGeneral.H_COMPANYNAMEVIET, ""));
                    }
                    else
                    {
                        ky.SetParameterValue(0, modGeneral.Tranlated(modGeneral.H_COMPANYNAMEANH, ""));
                    }
                    ky.SetParameterValue(1, modGeneral.Tranlated("Địa chỉ", "") + ": " + modGeneral.H_ADDRESS);
                    ky.SetParameterValue(2, modGeneral.Tranlated("T\x00e0i khoản", "") + ": " + modGeneral.H_ACOUNTTNUMBERVND + " " + modGeneral.Tranlated("Tại", "") + ":" + modGeneral.H_BANK);
                    ky.SetParameterValue(3, modGeneral.Tranlated("Điện thoại", "") + ": " + modGeneral.H_TELEPHONE);
                    ky.SetParameterValue(4, modGeneral.Tranlated("Fax", "") + ": " + modGeneral.H_FAX);
                    ky.SetParameterValue(5, modGeneral.Tranlated("C\x00d4NG NỢ PHẢI THU", ""));
                    ky.SetParameterValue(6, modGeneral.Tranlated("Từ ng\x00e0y", "") + " : " + this.TxtTuNgay.Text + " " + modGeneral.Tranlated("Đến ng\x00e0y", "") + " : " + this.TxtDenNgay.Text);
                    ky.SetParameterValue(7, modGeneral.Tranlated("STT", ""));
                    ky.SetParameterValue(8, modGeneral.Tranlated("M\x00e3 kh\x00e1ch h\x00e0ng", ""));
                    ky.SetParameterValue(9, modGeneral.Tranlated("Kh\x00e1ch h\x00e0ng", ""));
                    ky.SetParameterValue(10, modGeneral.Tranlated("Nợ cuối kỳ", ""));
                    ky.SetParameterValue(11, modGeneral.Tranlated("C\x00f3 cuối kỳ", ""));
                    ky.SetParameterValue(12, modGeneral.Tranlated("Cuối kỳ", ""));
                    ky.SetParameterValue(13, modGeneral.Tranlated("Nợ", ""));
                    ky.SetParameterValue(14, modGeneral.Tranlated("C\x00f3", ""));
                    ky.SetParameterValue(15, modGeneral.Tranlated("Tổng cộng", ""));
                    ky.SetParameterValue(0x10, modGeneral.Tranlated("Ng\x00e0y ...... th\x00e1ng ...... năm ...............", ""));
                    ky.SetParameterValue(0x11, modGeneral.Tranlated("Gi\x00e1m đốc", ""));
                    ky.SetParameterValue(0x12, modGeneral.Tranlated("Lập biểu", ""));
                    ky.SetParameterValue(0x13, modGeneral.Tranlated("Kế to\x00e1n trưởng", ""));
                    MyProject.Forms.Frm_ViewReport.ReportViewer.ReportSource = ky;
                    MyProject.Forms.Frm_ViewReport.ReportViewer.DisplayGroupTree = false;
                    this.Cursor = Cursors.Default;
                    MyProject.Forms.Frm_ViewReport.ShowDialog();
                }
                catch (Exception exception1)
                {
                    ProjectData.SetProjectError(exception1);
                    Exception exception = exception1;
                    this.Cursor = Cursors.Default;
                    MessageBox.Show(exception.Message.ToString());
                    ProjectData.ClearProjectError();
                }
            }
        }

        public void PrintReportTheoHanThanhToan()
        {
            this.Cursor = Cursors.WaitCursor;
            object obj2 = modGeneral.CreatKey("BC_DuLieuDanhMuc", 10, "");
            ReportModule.InitDuLieuDanhMuc(Conversions.ToString(obj2), this.VSList, 0, 1, "");
            DataTable dataTable = ReportModule.GetDataCongNoChiTietHanThanhToan(Conversions.ToString(obj2), LVYModule.Date2Char(this.TxtTuNgay.Text), LVYModule.Date2Char(this.TxtDenNgay.Text), Conversions.ToString(this.CboDonVi.SelectedValue), this.AdvTaiKhoan.Value, "");
            if (dataTable.Rows.Count == 0)
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Kh\x00f4ng c\x00f3 dữ liệu !", ""));
            }
            else if (dataTable != null)
            {
                Rpt_CongNoPhaiThuChiTietHanThanhToan toan = new Rpt_CongNoPhaiThuChiTietHanThanhToan();
                try
                {
                    toan.SetDataSource(dataTable);
                    if (modGeneral.H_LANGUAGE == "VIET")
                    {
                        toan.SetParameterValue(0, modGeneral.Tranlated(modGeneral.H_COMPANYNAMEVIET, ""));
                    }
                    else
                    {
                        toan.SetParameterValue(0, modGeneral.Tranlated(modGeneral.H_COMPANYNAMEANH, ""));
                    }
                    toan.SetParameterValue(1, modGeneral.Tranlated("Địa chỉ", "") + ": " + modGeneral.H_ADDRESS);
                    toan.SetParameterValue(2, modGeneral.Tranlated("T\x00e0i khoản", "") + ": " + modGeneral.H_ACCOUNTNAME + " " + modGeneral.Tranlated("Tại", "") + ":" + modGeneral.H_BANK);
                    toan.SetParameterValue(3, modGeneral.Tranlated("Điện thoại", "") + ": " + modGeneral.H_TELEPHONE);
                    toan.SetParameterValue(4, modGeneral.Tranlated("Fax", "") + ": " + modGeneral.H_FAX);
                    toan.SetParameterValue(5, modGeneral.Tranlated("SỔ CHI TIẾT C\x00d4NG NỢ PHẢI THU", ""));
                    toan.SetParameterValue(6, modGeneral.Tranlated("Số chứng từ", ""));
                    toan.SetParameterValue(7, modGeneral.Tranlated("Ng\x00e0y", ""));
                    toan.SetParameterValue(8, modGeneral.Tranlated("Diễn giải", ""));
                    toan.SetParameterValue(9, modGeneral.Tranlated("TK đối", ""));
                    toan.SetParameterValue(10, modGeneral.Tranlated("Ph\x00e1t sinh nợ", ""));
                    toan.SetParameterValue(11, modGeneral.Tranlated("Ph\x00e1t sinh c\x00f3", ""));
                    toan.SetParameterValue(12, modGeneral.Tranlated("Đầu kỳ", ""));
                    toan.SetParameterValue(13, modGeneral.Tranlated("Cộng ph\x00e1t sinh", ""));
                    toan.SetParameterValue(14, modGeneral.Tranlated("Cuối kỳ", ""));
                    toan.SetParameterValue(15, modGeneral.Tranlated("Ng\x00e0y ...... th\x00e1ng ...... năm ...............", ""));
                    toan.SetParameterValue(0x10, modGeneral.Tranlated("Gi\x00e1m đốc", ""));
                    toan.SetParameterValue(0x11, modGeneral.Tranlated("Từ ng\x00e0y", "") + " : " + this.TxtTuNgay.Text);
                    toan.SetParameterValue(0x12, modGeneral.Tranlated("Đến ng\x00e0y", "") + " : " + this.TxtDenNgay.Text);
                    toan.SetParameterValue(0x13, modGeneral.Tranlated("Lập biểu", ""));
                    toan.SetParameterValue(20, modGeneral.Tranlated("Kế to\x00e1n trưởng", ""));
                    toan.SetParameterValue(0x15, modGeneral.Tranlated("Hạn thanh to\x00e1n", ""));
                    toan.SetParameterValue(0x16, modGeneral.Tranlated("Ng\x00e0y thu", ""));
                    toan.SetParameterValue(0x17, modGeneral.Tranlated("Qu\x00e1 hạn", ""));
                    toan.SetParameterValue(0x18, modGeneral.Tranlated("STT", ""));
                    toan.SetParameterValue(0x19, modGeneral.Tranlated("H\x00f3a đơn", ""));
                    MyProject.Forms.Frm_ViewReport.ReportViewer.ReportSource = toan;
                    MyProject.Forms.Frm_ViewReport.ReportViewer.DisplayGroupTree = false;
                    this.Cursor = Cursors.Default;
                    MyProject.Forms.Frm_ViewReport.ShowDialog();
                }
                catch (Exception exception1)
                {
                    ProjectData.SetProjectError(exception1);
                    Exception exception = exception1;
                    this.Cursor = Cursors.Default;
                    MessageBox.Show(exception.Message.ToString());
                    ProjectData.ClearProjectError();
                }
            }
        }

        public void PrintReportTongHop()
        {
            this.Cursor = Cursors.WaitCursor;
            object obj2 = modGeneral.CreatKey("BC_DuLieuDanhMuc", 10, "");
            ReportModule.InitDuLieuDanhMuc(Conversions.ToString(obj2), this.VSList, 0, 1, "");
            DataTable dataTable = ReportModule.GetDataCongNoTongHop(Conversions.ToString(obj2), LVYModule.Date2Char(this.TxtTuNgay.Text), LVYModule.Date2Char(this.TxtDenNgay.Text), Conversions.ToString(this.CboDonVi.SelectedValue), this.AdvTaiKhoan.Value, "");
            if (dataTable.Rows.Count == 0)
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Kh\x00f4ng c\x00f3 dữ liệu !", ""));
            }
            else if (dataTable != null)
            {
                RptCongNoTongHop hop = new RptCongNoTongHop();
                try
                {
                    hop.SetDataSource(dataTable);
                    if (modGeneral.H_LANGUAGE == "VIET")
                    {
                        hop.SetParameterValue(0, modGeneral.Tranlated(modGeneral.H_COMPANYNAMEVIET, ""));
                    }
                    else
                    {
                        hop.SetParameterValue(0, modGeneral.Tranlated(modGeneral.H_COMPANYNAMEANH, ""));
                    }
                    hop.SetParameterValue(1, modGeneral.Tranlated("Địa chỉ", "") + ": " + modGeneral.H_ADDRESS);
                    hop.SetParameterValue(2, modGeneral.Tranlated("T\x00e0i khoản", "") + ": " + modGeneral.H_ACCOUNTNAME + " " + modGeneral.Tranlated("Tại", "") + ":" + modGeneral.H_BANK);
                    hop.SetParameterValue(3, modGeneral.Tranlated("Điện thoại", "") + ": " + modGeneral.H_TELEPHONE);
                    hop.SetParameterValue(4, modGeneral.Tranlated("Fax", "") + ": " + modGeneral.H_FAX);
                    hop.SetParameterValue(5, modGeneral.Tranlated("C\x00d4NG NỢ PHẢI THU", ""));
                    hop.SetParameterValue(6, modGeneral.Tranlated("Từ ng\x00e0y", "") + " : " + this.TxtTuNgay.Text + " " + modGeneral.Tranlated("Đến ng\x00e0y", "") + " : " + this.TxtDenNgay.Text);
                    hop.SetParameterValue(7, modGeneral.Tranlated("STT", ""));
                    hop.SetParameterValue(8, modGeneral.Tranlated("M\x00e3 kh\x00e1ch h\x00e0ng", ""));
                    hop.SetParameterValue(9, modGeneral.Tranlated("Kh\x00e1ch h\x00e0ng", ""));
                    hop.SetParameterValue(10, modGeneral.Tranlated("Đầu kỳ", ""));
                    hop.SetParameterValue(11, modGeneral.Tranlated("Ph\x00e1t sinh", ""));
                    hop.SetParameterValue(12, modGeneral.Tranlated("Cuối kỳ", ""));
                    hop.SetParameterValue(13, modGeneral.Tranlated("Nợ", ""));
                    hop.SetParameterValue(14, modGeneral.Tranlated("C\x00f3", ""));
                    hop.SetParameterValue(15, modGeneral.Tranlated("Tổng cộng", ""));
                    hop.SetParameterValue(0x10, modGeneral.Tranlated("Ng\x00e0y ...... th\x00e1ng ...... năm ...............", ""));
                    hop.SetParameterValue(0x11, modGeneral.Tranlated("Gi\x00e1m đốc", ""));
                    hop.SetParameterValue(0x12, modGeneral.Tranlated("Lập biểu", ""));
                    hop.SetParameterValue(0x13, modGeneral.Tranlated("Kế to\x00e1n trưởng", ""));
                    MyProject.Forms.Frm_ViewReport.ReportViewer.ReportSource = hop;
                    MyProject.Forms.Frm_ViewReport.ReportViewer.DisplayGroupTree = false;
                    this.Cursor = Cursors.Default;
                    MyProject.Forms.Frm_ViewReport.ShowDialog();
                }
                catch (Exception exception1)
                {
                    ProjectData.SetProjectError(exception1);
                    Exception exception = exception1;
                    this.Cursor = Cursors.Default;
                    MessageBox.Show(exception.Message.ToString());
                    ProjectData.ClearProjectError();
                }
            }
        }

        public void SearchKhachHang(string field, string str)
        {
            string str2 = field + " LIKE '%" + str + "%'";
            this.cFrmData.RowFilter = str2;
            if (this.VSList.Rows.Count != 1)
            {
                this.VSList.Select(1, 0, 1, this.VSList.Cols.Count - 1);
            }
        }

        private void TxtSearchCode_TextChanged(object sender, EventArgs e)
        {
            this.SearchKhachHang("Ma", this.TxtSearchCode.Text);
        }

        private void TxtSearchName_TextChanged(object sender, EventArgs e)
        {
            this.SearchKhachHang("TenViet", this.TxtSearchName.Text);
        }

        private void TxtTuNgay_LostFocus(object sender, EventArgs e)
        {
            if (LVYModule.sRight(this.TxtTuNgay.Text, 7) != LVYModule.sRight(this.TxtDenNgay.Text, 7))
            {
                this.TxtDenNgay.Text = DateTime.DaysInMonth(Conversions.ToInteger(LVYModule.sRight(this.TxtTuNgay.Text, 4)), Conversions.ToInteger(LVYModule.sMid(this.TxtTuNgay.Text, 4, 2))).ToString() + "/" + LVYModule.sRight(this.TxtTuNgay.Text, 7);
            }
        }

        private void VSList_BeforeEdit(object sender, RowColEventArgs e)
        {
            if (e.Col != 1)
            {
                e.Cancel = true;
            }
        }

        internal virtual ADVAccount AdvTaiKhoan
        {
            [DebuggerNonUserCode]
            get
            {
                return this._AdvTaiKhoan;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                ADVAccount.ValueChangedEventHandler handler = new ADVAccount.ValueChangedEventHandler(this.AdvTaiKhoan_ValueChanged);
                if (this._AdvTaiKhoan != null)
                {
                    this._AdvTaiKhoan.ValueChanged -= handler;
                }
                this._AdvTaiKhoan = value;
                if (this._AdvTaiKhoan != null)
                {
                    this._AdvTaiKhoan.ValueChanged += handler;
                }
            }
        }

        internal virtual ComboBox CboDonVi
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CboDonVi;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CboDonVi = value;
            }
        }

        internal virtual ComboBox CboMauBaoCao
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CboMauBaoCao;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CboMauBaoCao = value;
            }
        }

        internal virtual Button CmdCancel
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdCancel;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdCancel_Click);
                if (this._CmdCancel != null)
                {
                    this._CmdCancel.Click -= handler;
                }
                this._CmdCancel = value;
                if (this._CmdCancel != null)
                {
                    this._CmdCancel.Click += handler;
                }
            }
        }

        internal virtual Button CmdOK
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdOK;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdOK_Click);
                if (this._CmdOK != null)
                {
                    this._CmdOK.Click -= handler;
                }
                this._CmdOK = value;
                if (this._CmdOK != null)
                {
                    this._CmdOK.Click += handler;
                }
            }
        }

        internal virtual GroupBox GroupBox1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._GroupBox1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._GroupBox1 = value;
            }
        }

        internal virtual Label Label1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label1 = value;
            }
        }

        internal virtual Label Label13
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label13;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label13 = value;
            }
        }

        internal virtual Label Label2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label2 = value;
            }
        }

        internal virtual Label Label3
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label3;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label3 = value;
            }
        }

        internal virtual Label Label4
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label4;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label4 = value;
            }
        }

        internal virtual Label Label5
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label5;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label5 = value;
            }
        }

        internal virtual DateTimePicker TxtDenNgay
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtDenNgay;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtDenNgay = value;
            }
        }

        internal virtual TextBox TxtSearchCode
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtSearchCode;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.TxtSearchCode_TextChanged);
                if (this._TxtSearchCode != null)
                {
                    this._TxtSearchCode.TextChanged -= handler;
                }
                this._TxtSearchCode = value;
                if (this._TxtSearchCode != null)
                {
                    this._TxtSearchCode.TextChanged += handler;
                }
            }
        }

        internal virtual TextBox TxtSearchName
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtSearchName;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.TxtSearchName_TextChanged);
                if (this._TxtSearchName != null)
                {
                    this._TxtSearchName.TextChanged -= handler;
                }
                this._TxtSearchName = value;
                if (this._TxtSearchName != null)
                {
                    this._TxtSearchName.TextChanged += handler;
                }
            }
        }

        internal virtual DateTimePicker TxtTuNgay
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtTuNgay;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.TxtTuNgay_LostFocus);
                if (this._TxtTuNgay != null)
                {
                    this._TxtTuNgay.LostFocus -= handler;
                }
                this._TxtTuNgay = value;
                if (this._TxtTuNgay != null)
                {
                    this._TxtTuNgay.LostFocus += handler;
                }
            }
        }

        internal virtual C1.Win.C1FlexGrid.C1FlexGrid VSList
        {
            [DebuggerNonUserCode]
            get
            {
                return this._VSList;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                RowColEventHandler handler = new RowColEventHandler(this.VSList_BeforeEdit);
                if (this._VSList != null)
                {
                    this._VSList.BeforeEdit -= handler;
                }
                this._VSList = value;
                if (this._VSList != null)
                {
                    this._VSList.BeforeEdit += handler;
                }
            }
        }
    }
}

